<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>isdef</title>
  </head>
  <body bgcolor="#FFFFFF">
    <center>Scilab Function</center>
    <div align="right">Last update : April 1993</div>
    <p>
      <b>isdef</b> -  check variable  existence</p>
    <h3>
      <font color="blue">Calling Sequence</font>
    </h3>
    <dl>
      <dd>
        <tt>isdef(name [,where])  </tt>
      </dd>
    </dl>
    <h3>
      <font color="blue">Parameters</font>
    </h3>
    <ul>
      <li>
        <tt>
          <b>name</b>
        </tt>: a character string</li>
      <li>
        <tt>
          <b>where</b>
        </tt>: an optional character string with default value 'all'</li>
    </ul>
    <h3>
      <font color="blue">Description</font>
    </h3>
    <p>
      <tt>
        <b>isdef(name)</b>
      </tt> returns <tt>
        <b>%T</b>
      </tt> if the variable <tt>
        <b>'var-name'</b>
      </tt> exists 
    and <tt>
        <b>%F</b>
      </tt> otherwise.</p>
    <p>
      <tt>
        <b>isdef(name,'local')</b>
      </tt> returns <tt>
        <b>%T</b>
      </tt> if the variable <tt>
        <b>'var-name'</b>
      </tt> exists 
    in the
      local environment of the current function and <tt>
        <b>%F</b>
      </tt> otherwise.</p>
    <h3>
      <font color="blue">Examples</font>
    </h3>
    <pre>

A=1;
isdef('A')
clear A
isdef('A')
 
  </pre>
    <h3>
      <font color="blue">See Also</font>
    </h3>
    <p>
      <a href="../programming/exists.htm">
        <tt>
          <b>exists</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/whereis.htm">
        <tt>
          <b>whereis</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/type.htm">
        <tt>
          <b>type</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="typeof.htm">
        <tt>
          <b>typeof</b>
        </tt>
      </a>,&nbsp;&nbsp;<a href="../programming/clear.htm">
        <tt>
          <b>clear</b>
        </tt>
      </a>,&nbsp;&nbsp;</p>
  </body>
</html>
